import { http } from '@/utils/http'

// 新增
export const addMcp = (data?: object) => {
  return http.request('post', '/mcp/mall/addMcp', { data })
}
// 编辑
export const editMcp = (data?: object) => {
  return http.request('put', '/mcp/mall/editMcp', { data })
}
// 删除
export const removeMcp = (id?: string) => {
  return http.request('delete', `/mcp/mall/removeMcp/${id}`)
}
// 详情
export const getMcpDetail = (id: string) => {
  return http.get<{}, HttpResponse>(`/mcp/mall/getDetails/${id}`)
}
// 列表
export const getMcpList = (params?: object) => {
  return http.get<{}, HttpPaginationResponse>('/mcp/mall/getPageList', { params })
}
